package mymy;


public /*final*/ class Animal {
    protected String color;
    private String type;//物种

    public Animal(String type) {
        this.type = type;
    }
    public Animal() {
    }

    public /*final*/ void live(){
        System.out.println("活着，呼吸");
    }


    public String getType() {
        return type;
    }

    public Animal setType(String type) {
        this.type = type;
        return this;
    }
}
